package com.egg.auth.model.request.web;

import com.egg.common.core.model.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author east
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "角色新增或修改")
public class RolePostOrPut extends BaseRequest {


    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "角色编码", notes = "com.egg.auth.enums.role.RoleAuthCodeEnum")
    private String authCode;

    @ApiModelProperty(value = "角色排序")
    private Integer sort;

    @ApiModelProperty(value = "启用")
    private Boolean enable;

    @ApiModelProperty(value = "数据范围", notes = "com.egg.auth.enums.role.RoleDataScopeEnum")
    private String dataScope;

    @ApiModelProperty(value = "自定义数据权限范围")
    private List<Long> deptId;


}
